/*  This file is part of -_-.

    -_- is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    -_- is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with -_-.  If not, see <http://www.gnu.org/licenses/>.

    Copyright 2012-2013 Oliver Katz */

#ifndef __BUS_H
#define __BUS_H

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../common/args.h"
#include "../common/msg.h"
#include "../common/data.h"
#include "../common/list.h"
#include "ipc.h"
#include "share.h"

z_data z_bus_create_program(char *name, char *addr, int port); //method: create a program data packet
int z_bus_parse_programs(char *buf, z_list *dst); //method: parse a list of programs from 'buf' into 'dst'
char *z_bus_list_programs(z_list src); //method: create a list of programs from 'src'

#endif